<div class="container">
  <h1>redirect()</h1>
  <p class="signature"> function redirect(string $target_url): void </p>
  <h2>Description</h2>
  <div class="description">
    <p>Perform an HTTP redirect to the specified URL.</p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>$target_url</td>
        <td>string</td>
        <td>The URL to which the redirect should occur.</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <p>This function does not return a value.</p>
  <h2>Example Usage</h2>
  <div class="example">
    <pre>
redirect("/login");
// Redirects the user to the login page.

redirect("https://example.com");
// Redirects the user to https://example.com.</pre>
  </div>
</div>
